<template>
  <div style="position: relative;">
    <div style="position: absolute;right: 0;z-index: 1;">
      <ExportButton :path="DATA_EXPORT_PATH" :fileName="DATA_EXPORT_FILE_NAME" :params="{raceId: route.query.id}" />
    </div>
    <el-tabs v-model="activeName">
      <el-tab-pane label="积分榜" name="first">
        <ScoreBoard />
      </el-tab-pane>
      <el-tab-pane label="射手榜" name="second">
        <GoalScorer />
      </el-tab-pane>
      <!-- <el-tab-pane label="红黄牌" name="third">
        <Cards />
      </el-tab-pane> 需求去掉 -->
      <el-tab-pane label="停赛榜" name="fourth">
        <Suspended />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script lang="ts" setup>
import { reactive, ref } from "vue";
import ScoreBoard from "./components/ScoreBoard.vue";
import GoalScorer from "./components/GoalScorer.vue";
// import Cards from "./components/Cards.vue";
import Suspended from "./components/Suspended.vue";
import ExportButton from '@/components/ExportButton/index.vue'
import { DATA_EXPORT_PATH, DATA_EXPORT_FILE_NAME } from '@/components/ExportButton/config'
import { useRoute } from "vue-router";

const activeName = ref("first");
const route = useRoute();
</script>